package com.zxcl.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zxcl.domain.HotSearch;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zxcl.dto.HotSearchQueryDTO;
import com.zxcl.dto.PageDTO;

import java.util.List;

/**
 * 描述: []
 * 作者: zxcl
 */
public interface HotSearchService extends IService<HotSearch> {


    /**
     * 分页查询热搜
     *
     * @param pageDTO
     * @param hotSearch
     * @return
     */
    Page<HotSearch> loadHotSearchPage(PageDTO pageDTO, HotSearchQueryDTO hotSearch);

    /**
     * 新增热搜
     *
     * @param hotSearch
     * @return
     */
    int addHotSearch(HotSearch hotSearch);

    /**
     * 搜索店铺热门商品"
     * @param number
     * @param shopId
     * @param sort
     * @return
     */
    List<HotSearch> hotSearchMall(Integer number, Long shopId, Integer sort);
}
